package design_pattern.FutureMode;

import org.springframework.validation.beanvalidation.SpringValidatorAdapter;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/7 19:16
 * @Version 1.0
 */
public class TestNotifyAll {
    public static void main(String[] args) {
        final Object lock = new Object();
        new Thread(()->{
            synchronized (lock){
                try {
                    lock.wait();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            System.out.println(Thread.currentThread().getName()+"我也被唤醒了");
        }).start();

    }
}
